dialog: set suggested-action even on dialogs without header bars
authorWilliam Jon McCann <william.jon.mccann@gmail.com>
Thu, 27 Feb 2014 14:08:53 +0000 (09:08 -0500)
committerWilliam Jon McCann <william.jon.mccann@gmail.com>
Thu, 27 Feb 2014 14:08:53 +0000 (09:08 -0500)
It is up to the theme whether these should be styled.

gtk/gtkdialog.c

index 7efdebd870dbceeb650686998862d843c1510b34..04ae4a98b0daa5df26971adf63cee091bdd810aa 100644 (file)
@@ -1125,8 +1125,7 @@ gtk_dialog_set_default_response (GtkDialog *dialog,
       if (rd && rd->response_id == response_id)
         {
          gtk_widget_grab_default (widget);
-          if (dialog->priv->constructed && dialog->priv->use_header_bar == 1)
-            gtk_style_context_add_class (gtk_widget_get_style_context (widget), GTK_STYLE_CLASS_SUGGESTED_ACTION);
+          gtk_style_context_add_class (gtk_widget_get_style_context (widget), GTK_STYLE_CLASS_SUGGESTED_ACTION);
         }
 
       tmp_list = g_list_next (tmp_list);